package com.sarnath.sardoop.modules.hadoop.entity;

import org.springframework.data.hadoop.mapreduce.JobUtils;

public class JobInfo {
	private String jobId;
	private String name;
	private int state;
	private float mapProgress;
	private float reduceProgress;
	private String startTime;
	private String finishTime;
	public String getJobId() {
		return jobId;
	}
	public void setJobId(String jobId) {
		this.jobId = jobId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getState() {
		return JobUtils.JobStatus.fromRunState(state).name();
	}
	public void setState(int state) {
		this.state = state;
	}
	
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getFinishTime() {
		return finishTime;
	}
	public void setFinishTime(String finishTime) {
		this.finishTime = finishTime;
	}
	public float getMapProgress() {
		return mapProgress;
	}
	public void setMapProgress(float mapProgress) {
		this.mapProgress = mapProgress;
	}
	public float getReduceProgress() {
		return reduceProgress;
	}
	public void setReduceProgress(float reduceProgress) {
		this.reduceProgress = reduceProgress;
	}
	
	
}
